package com.wangjie.enums;

public enum ResultCodeEnum {
    SUCCESS(200, "成功"),

    UNAUTHORIZED(401, "认证失败, 请重新登录"),
    FORBIDDEN(403, "没有权限, 请联系管理员"),

    SYSTEM_ERROR(500, "系统错误");

    private final Integer code;

    private final String message;

    ResultCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
